package service;





import androidx.annotation.NonNull;

import com.xgggh.redpack.domain.auth.Auth;
import com.xgggh.redpack.domain.auth.AuthReq;
import com.xgggh.redpack.domain.redpack.Pack;

import java.util.List;

import io.reactivex.Flowable;
import model.Rsp;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface OauthService {

    /**
     * @title 登陆
     * @param authReq
     * @return
     */
    @POST("oauth/token")
    @Headers("Authorization:Basic Y2xpZW50OnNlY3JldA==")
    Flowable<Rsp<Auth>> token(@Body @NonNull AuthReq authReq);


    /**
     * @title 退出
     * @return
     */
    @GET("oauth/logout")
    Flowable<Rsp> logout();


}
